// src/routes/+layout.ts
import type { LayoutLoad } from './$types';
import { browser } from "$app/environment";
import { anonymousAuth } from "@service/auth";
import { loadingDatasets } from "@service/dataset"

export const load = (async () => {
  browser && await anonymousAuth(loadingDatasets);
  return {
  };
}) satisfies LayoutLoad;
// this is needed to give us force prerendering of all pages
export const prerender = true
export const ssr = false